package com.ruoyi.elasticsearch.es.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * 设备DTO
 */
@Data
@Document(indexName = "devices")
public class DeviceDTO implements Serializable {
    /**
     * 设备id
     */
    @Id
    private Long id;

    private String deviceId;//设备编号

    private Boolean alarm;// 是否告警

    private String alarmName;//告警名称

    private Integer level;//告警级别

    private Boolean online;//是否在线

    private String tag;// 标签

    private Boolean status;//开关状态

}
